home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / daten / db / examples / arexxdemos / calc.db next >
Text File  |  1995-08-31  |  187b  |  8 lines

  1. /* calc expression in given gadget
  2.    Written by: Richard Ludwig */
  3. options results;GETFIELD
  4. if verify(result, '0123456789+-*/().','m') then do
  5.     interpret 'ret=' result
  6.     PUTFIELD ret
  7. end
  8.